package com.java.multipledatasource.spring.test;

/**
 * @author hu
 * @version 1.0
 * @date 2021/1/25 0025 下午 4:02
 * @description
 */
public class Demo02 {

    public static void main(String[] args) {
        //a static
        //A str
        // 懒加载
        System.out.println(B.str);
    }
}

class A {
    public  static  String  str = "A str";
    static  {
        System.out.println("a static");
    }
}

class B extends A {
    static {
        System.out.println("b static");
    }
}
